<template>
	<div class="math-formula-item">
		<div class="war-list" v-for="(item, index) in list" :key="index">
			<span class="l">{{ item.start }}</span>
			<div class="placeholder"></div>
			<span class="r">{{ item.end }}</span>
		</div>
	</div>
</template>

<script setup>
import { computed } from 'vue';
const props = defineProps({
	data: {
		type: Object,
		default: () => ({})
	},
})
const list = computed(() => {
	return props.data
})
</script>

<style lang="scss" scoped>
@import "@/styles/var.scss";
.math-formula-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	span {
		font-size: 1.4rem;
		flex: 1;
		line-height: 1;
		font-family: "ChillRoundm";
		transform: translateY(-0.5rem);
	}
	.l { text-align: right; }
	.r { text-align: left; }
	.war-list {
		width: 20%;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.placeholder {
		margin: 2.1rem 0.6rem;
		border-radius: 5rem;
		height: 2.5rem;
		width: 2.5rem;
		border: 2px solid $gray-ligh-4;
		box-sizing: border-box;
	}
}
</style>